/* import PageTool from './PageTool'
import ImportExcel from './ImportExcel'
import ImageUpload from './ImageUpload'
import Vue from 'vue'
import print from 'vue-print-nb'
import FullScreen from './FullScreen'
import ThemePicker from './ThemePicker'
import Language from './Language'
import TagsView from './TagsView'
export default {
  install() {
    Vue.component('PageTool', PageTool)
    Vue.component('ImportExcel', ImportExcel)
    Vue.component('ImageUpload', ImageUpload)
    Vue.use(print)
    Vue.component('FullScreen', FullScreen)
    Vue.component('ThemePicker', ThemePicker)
    Vue.component('Language', Language)
    Vue.component('TagsView', TagsView)
  }
} */
// 全局统一注册，使用webpack中的require.context()
import Vue from 'vue'
const req = require.context('@/components', true, /\.vue/)
req.keys().forEach(item => {
  const comp = req(item).default
  Vue.component(comp.name || 'defaultCom', comp)
})
